package com.example.studywords.sql;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import com.example.studywords.bean.TranslateBean;

import java.util.List;

@Dao
public interface TranslateDao {
    @Insert
    void insert(TranslateBean translateBean);
    @Query("SELECT translationId FROM translate WHERE translationContent = :content")
    int selectIdByContent(String content);
    @Query("SELECT * FROM translate WHERE translationId = :translationId")
    TranslateBean selectTranslation(int translationId);
}
